
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="">

    <title>Đăng nhập hệ thống</title>

    <!-- Bootstrap core CSS -->
    <link href="<?=base_url('bootstrap/css/bootstrap.min.css') ?>" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="<?=base_url('bootstrap/css/signin.css') ?>" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="container">    
      <form class="form-signin" role="form" action="<?=site_url('verifylogin') ?>" method="post">
        <h2 class="form-signin-heading">Đăng nhập</h2>
        <div class="form-group">
          <input type="username" name="username" class="form-control" placeholder="admin" value="<?=set_value('username') ?>" required autofocus>
        </div>          
        <div class="form-group">
          <input type="password" name="password" class="form-control" placeholder="admin" value="<?=set_value('password') ?>" required>
        </div>
        <label class="checkbox">
          <input type="checkbox" value="remember-me"> Remember me
        </label>
        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>        
        <p>
        <?php 
          $error = validation_errors();
          if(!empty($error)):
              echo '<div class="alert alert-danger">'.$error.'</div>';
          endif;
        ?>
        </p>
      </form>

    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
  </body>
</html>
